import { Entity, PrimaryGeneratedColumn, Column , CreateDateColumn, } from 'typeorm';

@Entity('dic')
export class Dic {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'dic_type' }) // 修改字段名为 dic_type
  dic_type: string;

  @Column()
  name: string;

  @Column()
  value: string;

  @CreateDateColumn({ type: 'timestamp' })
  create_time: Date;

  @Column({ nullable: true })
  des: string;
}
